package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.invamountreport.PMInvAmountReportTransferer;
import com.fis.hlo.pm.invamountreport.PMInvAmountReportTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class InvAmountReportTransfererClient {

	private static final QName SERVICE_NAME = new QName("http://invamountreport.pm.hlo.fis.com/", "PMInvAmountReportTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_INV_AMOUNT_REPORT_PORT_KEY);

	public static PMInvAmountReportTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMInvAmountReportTransfererService ss = new PMInvAmountReportTransfererService(
				url, SERVICE_NAME);
		PMInvAmountReportTransferer port = ss
				.getPMInvAmountReportTransfererPort();
		return port;
	}
	
}
